import Vue from 'vue'
import Vuex from 'vuex'
import tabnav from './modules/tabModule'
import homedata from './modules/homeModule'
import columndata from './modules/columnModule'
import pathurl from './modules/pathUrlModule'
import categorydata from './modules/categoryModule'
import searchdata from './modules/searchModule'
import createPersistedState from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  plugins: [createPersistedState({
    reducer (data) {
      return {
        searchdata: data.searchdata
      }
    }
  })],
  state: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    tabnav,
    homedata,
    columndata,
    pathurl,
    categorydata,
    searchdata
  }
})
